#include "task_sys.h"

#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "croutine.h"


#include "task_msg.h"
#include "task_50ms.h"
#include "task_network.h"


TaskHandle_t xHandleTaskSys = NULL;
unsigned portBASE_TYPE taskMsgHighWaterMark;
unsigned portBASE_TYPE task50msHighWaterMark;
unsigned portBASE_TYPE taskNetworkHighWaterMark;


void vTask_Sys(void *pvParameters)
{
	static portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
	TickType_t pxPreviousWakeTime = xTaskGetTickCount();
	while(1)
	{
		vTaskDelayUntil(&pxPreviousWakeTime, 1000 / portTICK_RATE_MS );
//		taskMsgHighWaterMark=uxTaskGetStackHighWaterMark( xHandleTaskMsg );
		task50msHighWaterMark=uxTaskGetStackHighWaterMark( xHandleTask50ms );
		taskNetworkHighWaterMark=uxTaskGetStackHighWaterMark( xHandleTaskNetWork );
	}
} 
  